import request from "../utils/request";

// 登录
export const apiLogin = (data) => {
    return request({
        url: '/api/login',
        method: 'post',
        data
    })
}

// 注册
export const apiSign = (data) => {
    return request({
        url: '/api/sign',
        method: 'post',
        data
    })
}

// 获取用户信息
export const apigetUserInfo = () => {
    return request({
        url: '/api/getUserInfo'
    })
}

// 获取列表数据
export const apigetList = (data) => {
    return request({
        url: '/api/getList',
        method: 'post',
        data
    })
}

// 删除
export const apiDeleteItem = (data) => {
    return request({
        url: '/api/delete',
        method: "delete",
        params: data
    })
}